#include <sys/types.h>
#include <signal.h>
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cout << "kill signalnumber pid" << std::endl;
        return 1;
    }
    pid_t pid = std::stoi(argv[2]);
    int signalnumber = std::stoi(argv[1]);
    int n = kill(pid, signalnumber);
    if(n == 0)
    {
        std::cout << "kill function success" << std::endl;
    }
    else
    {
        std::cout << "kill error" << std::endl;
        return 1;
    }
    return 0;
}